package models

type User struct {
	ID       uint   `gorm:"primaryKey" json:"id"`
	UUID     string `gorm:"unique;not null" json:"uuid"`
	Username string `gorm:"unique;not null" json:"username" binding:"required"`
	Password string `gorm:"not null" json:"password" binding:"required"`
	Email    string `gorm:"unique;not null" json:"email" binding:"required,email"`
}

// TableName specifies the table name for the User model
func (User) TableName() string {
	return "sys_users"
}